package com.apache.log.service.impl;

import com.apache.api.vo.ParamsVo;
import com.apache.database.model.Page;
import com.apache.exception.BusinessException;
import com.apache.log.manager.LogManager;
import com.apache.log.manager.UnityBaseManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: Hou Dayu
 * @date: Created in 2020/11/18
 */
@Service("unityBaseManager")
public class UnityBaseManagerImpl implements UnityBaseManager {

    @Autowired
    @Qualifier("logManager")
    private LogManager logManager;

    @Override
    public String saveInfo(ParamsVo vo) throws BusinessException {
        return logManager.saveInfo(vo);
    }

    @Override
    public boolean editInfo(ParamsVo vo) throws BusinessException {
        return logManager.editInfo(vo);
    }

    @Override
    public boolean deleteInfo(ParamsVo vo) throws BusinessException {
        return logManager.deleteInfo(vo);
    }

    @Override
    public Object execute(ParamsVo vo) {
        return null;
    }

    @Override
    public Object getInfoById(ParamsVo vo) {
        return logManager.getInfoById(vo);
    }

    @Override
    public List getList(ParamsVo vo) {
        return logManager.getList(vo);
    }

    @Override
    public long countInfo(ParamsVo vo) {
        return 0;
    }

    @Override
    public Page getPageInfo(ParamsVo vo) {
        return logManager.getPageInfo(vo);
    }
}
